package com.starblink.android.common.route

import android.content.Context
import android.util.Log
import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.service.DegradeService
import com.starblink.android.basic.extension.navigationTo
import com.starblink.basic.route.RoutePage
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch

@Route(path = "/common/degrade")
class SkDegradeServiceImp: DegradeService {
    override fun init(context: Context?) {

    }

    override fun onLost(context: Context?, postcard: Postcard?) {
        Log.d("SkDegradeServiceImp", "arouter onLost: path: ${postcard?.path}, uri: ${postcard?.uri.toString()}")
        /*MainScope().launch {
            navigationTo(RoutePage.GCONFIG.G_NOT_FOUNT)
        }*/
    }
}